﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace RSHB.Framework.BLL
{
    public class FileContentManager
    {
        IFileContentProvider _contentProvider;
        IFileContentBuilder _contentBuilder;

        public FileContentManager(IFileContentProvider contentProvider, IFileContentBuilder contentBuilder)
        {
            this._contentProvider = contentProvider;
            this._contentBuilder = contentBuilder;
        }

        public MemoryStream GetFileContent()
        {
            return this._contentBuilder.Build(this._contentProvider.LoadFileContent());
        }
    }
}
